package com.example.myapplication.NewsInfo;

import java.util.List;

public class NewsInfo {
    private int total;
    private int code;
    private String msg;
    private List<NewsInfoDetail> rows;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<NewsInfoDetail> getRows() {
        return rows;
    }

    public void setRows(List<NewsInfoDetail> rows) {
        this.rows = rows;
    }

    public class NewsInfoDetail{
        private int id;
        private String msg;
        private String title;
        private String content;
        private String createTime;
        private String imgUrl;
        private Integer likeNumber;
        private Integer viewsNumber;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getImgUrl() {
            return imgUrl;
        }

        public void setImgUrl(String imgUrl) {
            this.imgUrl = imgUrl;
        }

        public Integer getLikeNumber() {
            return likeNumber;
        }

        public void setLikeNumber(Integer likeNumber) {
            this.likeNumber = likeNumber;
        }

        public Integer getViewsNumber() {
            return viewsNumber;
        }

        public void setViewsNumber(Integer viewsNumber) {
            this.viewsNumber = viewsNumber;
        }
    }
}
